package com.zhengtoon.mctoon.conv.exception;

import com.qitoon.framework.core.entity.CodeMessage;

/**
 * 应用异常编码
 *
 * @author liuzhenhua
 * @since 2017-05-09
 */
public class ConvPhotoExceptionCode {


    /**
     * 基础校验
     */
    public static final CodeMessage PARAM_IS_NULL = new CodeMessage("2001", "参数为空");
    public static final CodeMessage CODE_TIMESTAMP_NULL = new CodeMessage("2002", "code信息中timestamp为空");
    public static final CodeMessage MSG_PARAM_IS_NULL = new CodeMessage("2003", "通知参数不合法");
    public static final CodeMessage PARAM_IS_FAIL = new CodeMessage("2004", "请求参数不合法");
    public static final CodeMessage USER_TOKEN_IS_NULL = new CodeMessage("2005", "平台userToken为空");
    /**
     * session, code 相关
     */
    public static final CodeMessage SESSION_IS_FAIL = new CodeMessage("5000", "您的会话已过期");

    public static final CodeMessage TOON_CODE_FAIL = new CodeMessage("5004", "toonCode解析失败");

    public static final CodeMessage TOON_CODE_EXPIRE = new CodeMessage("5002", "toonCode已过期");

    /**
     * 业务相关
     */
    public static final CodeMessage RESULT_IS_NULL = new CodeMessage("CONV3000", "网络异常，请稍后重试");

    public static final CodeMessage ADDCONV_IS_FAIL = new CodeMessage("CONV6000", "随手拍记录数据提交错误");

    public static final CodeMessage AUDIT_COMMENT_IS_FAIL = new CodeMessage("CONV6001", "评论未进入审核");

    public static final CodeMessage GET_SLIDE_SHOW_LIST_ERROR = new CodeMessage("CONV6002", "获取专题轮播图列表错误");
    public static final CodeMessage GET_SUBJECT_DETAIL_ERROR = new CodeMessage("CONV6003", "获取专题详情错误");
    public static final CodeMessage GET_SUBJECT_CONV_LIST_ERROR = new CodeMessage("CONV6004", "获取专题下的随手拍列表");

    public static final CodeMessage GET_SUBJECT_SELECT_SUBJECT_ERROR = new CodeMessage("CONV6005", "获取专题失败");

    /**
     * 后台审核相关异常  start
     */
    public static final CodeMessage PENDING_AUDIT_ERROR = new CodeMessage("CONV7000", "查询待审核列表失败");
    public static final CodeMessage PENDING_AUDIT_DETAIL_ERROR = new CodeMessage("CONV7001", "查询待审核详情失败");
    public static final CodeMessage PENDING_NEXT_AUDIT_DETAIL_ERROR = new CodeMessage("CONV7002", "查询下一个待审核详情失败");
    public static final CodeMessage AUDIT_CONFIG_ERROR = new CodeMessage("CONV7003", "获取配置字典项失败");
    public static final CodeMessage ADD_AUDIT_ERROR = new CodeMessage("CONV7004", "审核随手拍记录失败");
    public static final CodeMessage REPORT_LIST_ERROR = new CodeMessage("CONV7005", "查询举报列表失败");
    public static final CodeMessage REPORT_DETAIL_ERROR = new CodeMessage("CONV7006", "查询举报详情失败");
    public static final CodeMessage ADD_REPORT_ERROR = new CodeMessage("CONV7007", "审核举报失败");
    public static final CodeMessage REPORT_DONE_LIST_ERROR = new CodeMessage("CONV7008", "查询已处理列表失败");
    public static final CodeMessage UNLOCK_AUDIT_RECORD_ERROR = new CodeMessage("CONV7009", "解锁随手拍记录失败");
    public static final CodeMessage QUERY_HANDLE_RECORD_ERROR = new CodeMessage("CONV7010", "查询处理历史失败");
    public static final CodeMessage DELETE_COMMENT_ERROR = new CodeMessage("CONV7011", "显示/删除评论失败");
    public static final CodeMessage CITY_INTEGRAL_ERROR = new CodeMessage("CONV7012", "城市积分服务添加积分失败");

    public static final CodeMessage GET_SUBJECT_MANAGE_LIST_ERROR = new CodeMessage("CONV7013", "获取专题管理列表失败");
    public static final CodeMessage ADD_SUBJECT_ERROR = new CodeMessage("CONV7014", "新增专题失败");
    public static final CodeMessage UPDATE_SUBJECT_ERROR = new CodeMessage("CONV7015", "更新专题失败");
    public static final CodeMessage UPLOAD_IMG_ERROR = new CodeMessage("CONV7016", "上传图片失败");
    public static final CodeMessage VALID_TOKEN_EXPIRED = new CodeMessage("CONV7017", "平台validateToken接口:Token失效");
    public static final CodeMessage VALID_TOKEN_OTHER = new CodeMessage("CONV7018", "验证平台Token失败");
    public static final CodeMessage SHIFT_UP_SUBJECT_ERROR = new CodeMessage("CONV7019", "上移专题失败");
    public static final CodeMessage SHELVE_OR_UN_SHELVE_SUBJECT_ERROR = new CodeMessage("CONV7020", "上下架专题失败");
    public static final CodeMessage SHELVE_COUNT_OUT_OF_BOUNDS = new CodeMessage("CONV7021", "上架专题数量最多为5个!");
    public static final CodeMessage SHIFT_SUBJECT_LAST_NULL = new CodeMessage("CONV7022", "当前专题为第一个,无法上移");
    public static final CodeMessage SUBJECT_FILE_OUT_OF_SIZE = new CodeMessage("CONV7023", "随手拍图片大小超过限制");
    public static final CodeMessage UNSUPPORTED_FILE_TYPE = new CodeMessage("CONV7024", "不支持的文件类型");
    public static final CodeMessage SUBJECT_NOT_SHELVE =new CodeMessage("CONV7025", "该专题未上架,无法上移") ;
    public static final CodeMessage ADD_COMMENT_ERROR =new CodeMessage("CONV7026", "提交评论失败") ;
    public static final CodeMessage UPLOAD_PHOTO_TOO_MANY = new CodeMessage("CONV7027", "上传图片数量超出限制") ;

    /**
     * 后台审核相关异常  end
     */

    /**
     * 调用业务相关
     */

    public static final CodeMessage QUERY_OTHER_LIST_ERROR = new CodeMessage("CONV_16001", "查询他人列表失败");

    public static final CodeMessage QUERY_MY_LIST_ERROR = new CodeMessage("CONV_16002", "查询个人列表失败");

    public static final CodeMessage ADD_LETTER_FAIL = new CodeMessage("CONV_16003", "提交信件失败");

    public static final CodeMessage QUERY_MY_DETAIL_ERROR = new CodeMessage("CONV_16004", "查询个人信件详情失败");

    public static final CodeMessage QUERY_OTHER_DETAIL_ERROR = new CodeMessage("CONV_16005", "查询他人信件详情失败");
    /**
     * 调用中科软系统相关
     */
    public static final CodeMessage SUBMIT_FEEDBACK_FAIL = new CodeMessage("CONV_17001", "提交用户评价失败");

    public static final CodeMessage SUBMIT_LETTER_FAIL = new CodeMessage("CONV_17002", "提交信件失败");


    /**
     * 解析出入参数相关
     */
    public static final CodeMessage PARSE_XML_FAIL = new CodeMessage("CONV_18001", "解析xml文件失败");
    /**
     * 压缩文件失败
     */
    public static final CodeMessage ZIP_FILE_FAIL = new CodeMessage("CONV_19001", "压缩文件失败");
    /**
     * 下载文件失败
     */
    public static final CodeMessage DOWNLOAD_FILE_FAIL = new CodeMessage("CONV_19002", "下载文件失败");

    public static final CodeMessage CONV_ADD_LETTER_PARAM_IS_NULL = new CodeMessage("CONV_19003", "随手拍提交首都之窗信件参数为空");
    public static final CodeMessage CONV_ADD_LETTER_FAIL = new CodeMessage("CONV_19004", "随手拍提交首都之窗信件失败");


}
